//
//  NewsEntity.swift
//  Screen
//
//  Created by Season02 on 12/6/16.
//  Copyright © 2016 alex.chih. All rights reserved.
//

import UIKit
import HandyJSON

//class Wechats: NSObject,NSCoding,HandyJSON
class Wechats: HandyJSON
{
    var openid:String? = nil
    var city:String? = nil
    var country:String? = nil
    var nickname:String? = nil
    var privilege:[String]?
    var language:String? = nil
    var headimgurl:String? = nil
    var unionid:String? = nil
    var sex:Int64 = 0
    var province:String? = nil
    
//    func encode(with aCoder: NSCoder)
//    {
//        aCoder.encode(self.status, forKey: "status")
//        aCoder.encode(self.message, forKey: "message")
//        
//        aCoder.encode(self.commentsCount, forKey: "commentsCount")
//        aCoder.encode(self.clickCount, forKey: "clickCount")
//        
//        aCoder.encode(self.id, forKey: "id")
//        aCoder.encode(self.picNormalPath, forKey: "picNormalPath")
//        aCoder.encode(self.subject, forKey: "subject")
//        aCoder.encode(self.authorName, forKey: "authorName")
//        aCoder.encode(self.title, forKey: "title")
//        aCoder.encode(self.subcribeTime, forKey: "subcribeTime")
//        aCoder.encode(self.picMinPath, forKey: "picMinPath")
//        aCoder.encode(self.content, forKey: "content")
//        
//        aCoder.encode(self.recommandList, forKey:"recommandList")
//    }
    
//    required init(coder aDecoder: NSCoder)
//    {
//        super.init()
//        
//        self.status = aDecoder.decodeBool(forKey: "status")
//        self.message = aDecoder.decodeBool(forKey: "message")
//        
//        self.commentsCount = aDecoder.decodeInt32(forKey: "commentsCount")
//        self.clickCount = aDecoder.decodeInt32(forKey: "commentsCount")
//        
//        self.id = aDecoder.decodeObject(forKey: "id") as! String?
//        self.picNormalPath = aDecoder.decodeObject(forKey: "picNormalPath") as! String?
//        self.subject = aDecoder.decodeObject(forKey: "subject") as! String?
//        self.authorName = aDecoder.decodeObject(forKey: "authorName") as! String?
//        self.title = aDecoder.decodeObject(forKey: "title") as! String?
//        self.subcribeTime = (aDecoder.decodeObject(forKey: "subcribeTime") as! String?)!
//        self.picMinPath = aDecoder.decodeObject(forKey: "picMinPath") as! String?
//        self.content = aDecoder.decodeObject(forKey: "content") as! String?
//        
//        self.recommandList = aDecoder.decodeObject(forKey: "recommandList") as! [NewsEntity]?
//    }
    
    required init() {}
}
